package com.worthtech.billportal.bean;

/**
 * PospFtpInfoId entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class PospFtpInfoId implements java.io.Serializable {

	// Fields

	private String pospPsam;
	private String pospMercode;
	private String pospTermcode;

	// Constructors

	/** default constructor */
	public PospFtpInfoId() {
	}

	/** full constructor */
	public PospFtpInfoId(String pospPsam, String pospMercode,
			String pospTermcode) {
		this.pospPsam = pospPsam;
		this.pospMercode = pospMercode;
		this.pospTermcode = pospTermcode;
	}

	// Property accessors

	public String getPospPsam() {
		return this.pospPsam;
	}

	public void setPospPsam(String pospPsam) {
		this.pospPsam = pospPsam;
	}

	public String getPospMercode() {
		return this.pospMercode;
	}

	public void setPospMercode(String pospMercode) {
		this.pospMercode = pospMercode;
	}

	public String getPospTermcode() {
		return this.pospTermcode;
	}

	public void setPospTermcode(String pospTermcode) {
		this.pospTermcode = pospTermcode;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof PospFtpInfoId))
			return false;
		PospFtpInfoId castOther = (PospFtpInfoId) other;

		return ((this.getPospPsam() == castOther.getPospPsam()) || (this
				.getPospPsam() != null
				&& castOther.getPospPsam() != null && this.getPospPsam()
				.equals(castOther.getPospPsam())))
				&& ((this.getPospMercode() == castOther.getPospMercode()) || (this
						.getPospMercode() != null
						&& castOther.getPospMercode() != null && this
						.getPospMercode().equals(castOther.getPospMercode())))
				&& ((this.getPospTermcode() == castOther.getPospTermcode()) || (this
						.getPospTermcode() != null
						&& castOther.getPospTermcode() != null && this
						.getPospTermcode().equals(castOther.getPospTermcode())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getPospPsam() == null ? 0 : this.getPospPsam().hashCode());
		result = 37
				* result
				+ (getPospMercode() == null ? 0 : this.getPospMercode()
						.hashCode());
		result = 37
				* result
				+ (getPospTermcode() == null ? 0 : this.getPospTermcode()
						.hashCode());
		return result;
	}

}